<?php
class Application_Form_RecuperaSenha extends Zend_Form
{
    public function init ()
    {
    	
        $this->setName('recuperaSenha');
        $this->setAction('');
        $this->setMethod('post');
        
        $this->setAttribs(array('id' => 'form_recupera'));
        
        $email = new Zend_Form_Element_Text('email');        
        $email->setLabel('Endereço de e-mail:');
        $email->setRequired(true);
        $email->addValidator(new Zend_Validate_EmailAddress());
        $email->setAttribs(array('title' => 'Login','size'=>'40'));
        
        $entrar = new Zend_Form_Element_Submit('submit');        
        $entrar->setAttribs(array('title'=>'Enviar', 'style'=>'font-weight:bold;'));

        $capt = new Zend_Form_Element_Captcha('captcha',array('label' => 'Digite o código abaixo:',
        						'captcha' => array('captcha' => 'Image',
        											'wordLen' => 7,
        											'width' => 140,
        											'height' => 60,
        											'font' => 'fontes/arial.TTF', 
        											'fontSize' => 25,
        											'dotNoiseLevel' => 3,
        											'lineNoiseLevel' => 3,
        											'imgDir' => 'imagens/captcha/', 
        											'imgUrl' => '/imagens/captcha/',
        											'GcFreq' =>10,
        											'Expiration'=>10,
        											)
        				  		)
        				  );
        $capt->setRequired(true);
       
        $this->addElements(array($email, $capt, $entrar));
    }
}

